package beautiful.butterfly.distributed_task_processing_engine.user_definition;

import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;

/**
 * 用户和调度系统的交互媒介
 */
public class TaskProcessorAllocationStrategyUserDefinition
{

    //
    @SerializedName("taskId")
    @Setter
    @Getter
    private String taskId;//本来应该是id的,但是为了全局容易分析问题考虑为taskId


    @SerializedName("maxAllowThreadGroupNum")
    @Setter
    @Getter
    private int maxAllowThreadGroupNum;//整个任务允许创建的线程组


    @SerializedName("maxThreadNumPerJvm")
    @Setter
    @Getter
    private int maxThreadNumPerJvm;//单JVM最大线程组数量


    @SerializedName("ipOrHostNameList")
    @Setter
    @Getter
    private String[] ipOrHostNameList;

    //
    public static String status_pause = "pauseTaskProcessorAllocationStrategy";
    public static String status_resume = "resumeTaskProcessorAllocationStrategy";
    @SerializedName("status")
    @Setter
    @Getter
    private String status = status_resume;
}
